home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / e / mailinglists / amigae.0793july.archive / 000029_crash!unx.sas.com!jamie_Tue, 13 Jul 93 07:47:20 PST.msg < prev    next >
Internet Message Format  |  1994-05-26  |  3KB

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Tue, 13 Jul 93 07:47:20 PST
  3. Received: from lamb.sas.com by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #15) id m0oFl2q-000039C; Tue, 13 Jul 93 07:09 PDT
  5. Received: from mozart by lamb.sas.com (5.65c/SAS/Gateway/10-28-91)
  6.     id AA05063; Tue, 13 Jul 1993 10:09:21 -0400
  7. Received: from cdevil.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90)
  8.     id AA10180; Tue, 13 Jul 1993 09:49:15 -0400
  9. Received: by cdevil.unx.sas.com (5.65c/SAS/Generic 9.01/3-26-93)
  10.     id AA24246; Tue, 13 Jul 1993 09:49:09 -0400
  11. Message-Id: <199307131349.AA24246@cdevil.unx.sas.com>
  12. Date: Tue, 13 Jul 1993 09:49:08 -0500 (EDT)
  13. X-Mailer: ELM [version 2.4 PL20]
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset=US-ASCII
  16. Content-Transfer-Encoding: 7bit
  17. Content-Length: 2354
  18. From: James Cooper <jamie@unx.sas.com>
  19. To: amigae@bkhouse.cts.com
  20. Subject: stderr & $VER
  21.  
  22. >        Welp.. here I am.  Finally found a forum for the discussion of AmigaE,
  23. >a language I'm pretty impressed with, overall.
  24.  
  25. Welcome!  :-)
  26.  
  27. >        Can anyone suggest a way I could open a stderr port to the same
  28. >"window" stdout is hooked to, without having to go through too much convoluted
  29. >programming nonsense?
  30.  
  31. Since the Amiga doesn't directly support a 'stderr' stream, every C
  32. compiler I know of simply uses an
  33.  
  34.         Open("*", OLDFILE)
  35.  
  36. type of statement to "fake" stderr.  '*' is the AmigaDOS shorthand which
  37. means "current console".
  38.  
  39. >        Also, I've got something of a complaint that perhaps you guys have
  40. >already found a work around for that is better than mine... I would like to
  41. >have a string that is CONST (that is, say:
  42. >
  43. >CONST VERSION = '$VER: Myprog 234098.002 (12.7.93/23:17:34/E 2.1b) An ' +
  44. >                'Example Program'
  45. >
  46. >which could be used anywhere in my program).
  47.  
  48. Hmm... so far, I haven't been able to do this, except by simply creating
  49. a PTR TO CHAR variable that I never use...
  50.  
  51. Also, I really *hope* you aren't using a version string like your
  52. example... the correct $VER format, according to Commodore is:
  53.  
  54.         "$VER: progname v.r (d.m.y)"
  55.  
  56. where
  57.  
  58.         '$VER: '        =       is *required*.  All 6 characters, from
  59.                                 the leading '$' to a trailing space.
  60.  
  61.         progname        =       program name with no embedded spaces or
  62.                                 periods.
  63.  
  64.         v               =       major version number of program, in
  65.                                 numeric form, with NO leading zeros.
  66.  
  67.         r               =       minor version number, release number, or
  68.                                 whatever, following the numbering scheme
  69.                                 of 1,...9,10,...99,100..., with NO
  70.                                 leading zeros.
  71.  
  72.         d               =       day, with NO leading zeros.
  73.  
  74.         m               =       month, with NO leading zeros.
  75.  
  76.         y               =       year, last TWO digits only!
  77.  
  78. and you *must* use periods to separate the d.m.y numbers, or the Locale
  79. stuff from Amiga OS 2.1 and up cannot properly format the date string.
  80.  
  81. The d.m.y field must be enclosed in parentheses, with no other extra
  82. characters allowed in the string (i.e., nothing else inside the parens,
  83. no trailing comments, etc.).